package com.hui10.mediaplayer.sigleton;

/**
 * Author: Created by lucus on 2019/5/24.
 * E-mail: mcphilex1989@gmail.com
 * Tel: 15652608401
 * java 懒汉式单例
 */
public class LazySingletonDemo {

    private LazySingletonDemo(){}

    private static LazySingletonDemo lazySingletonDemo;

    public static LazySingletonDemo getInstance(){
        if (null == lazySingletonDemo) {
            lazySingletonDemo = new LazySingletonDemo();
        }
        return lazySingletonDemo;
    }
}
